<h1>{$WEB_APP.title}</h1>
{if count($WEB_APP.questions_text) neq 0}
	<table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
		<tr id="head" valign="top">
			<td class="leftborder" width="6"><img src="{$WEB_APP.images_dir}btlg.gif"></td>
			<td class = "col">{$text.txt_view_test_questions} &laquo;{$WEB_APP.test->name}&raquo;</td>
			<td class="rightborder" width="6"><img src="{$WEB_APP.images_dir}btrg.gif"></td>
		</tr>
	{foreach from = $WEB_APP.questions_text item = item name=foreach_row}
		{cycle values =" line1,line2" assign = "line"}
		<tr class = "{$line}">
			{if $smarty.foreach.foreach_row.iteration eq 1}<td class = "leftborder" rowspan = "{$WEB_APP.questions_count}"></td>{/if}
			<td class="namecol" height=20>{$item.question_text_html}</td>
			{if $smarty.foreach.foreach_row.iteration eq 1}<td class = "rightborder" rowspan = "{$WEB_APP.questions_count}"></td>{/if}
		</tr>
	{/foreach}
		<tr>
			<td><img src = "{$WEB_APP.images_dir}bbl.gif"></td>
			<td class = "bottomborder"></td>
			<td><img src = "{$WEB_APP.images_dir}bbr.gif"></td>
		</tr>
	</table>
	<table width=100% cellpadding=0 cellspacing=0>
	<tr>
		<td width="70%">{include file="paginator.tpl" paginator=$WEB_APP.paginator url="$WEB_APP.script_name"}</td>
		{if $WEB_APP.settings.show_items_per_page}<td width="30%">{include file = "count_paginator.tpl"}</td>{/if}
	</tr>
</table><br>		
{/if}
	
